home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group94b.txt
/
000122_icon-group-sender _Thu Nov 24 02:35:53 1994.msg
< prev
next >
Wrap
Internet Message Format
|
1995-02-09
|
1KB
Received: by cheltenham.cs.arizona.edu; Wed, 23 Nov 1994 20:12:59 MST
To: icon-group-l@cs.arizona.edu
Date: Thu, 24 Nov 1994 02:35:53 GMT
From: dsh@netcom.com (David S. Harrison)
Message-Id: <dshCzr37t.18K@netcom.com>
Organization: NETCOM On-line Communication Services (408 261-4700 guest)
Sender: icon-group-request@cs.arizona.edu
Subject: proc() in Icon 9.0 on SGI
Errors-To: icon-group-errors@cs.arizona.edu
I was recently trying to use ibpag2 using Icon 9.0 on an SGI
machine. It seems ibpag2 uses proc() to call the actions
associated with rules. However, under 9.0 on an SGI, proc()
fails to find procedures. Below is an example:
procedure user_func(a)
return a-7
end
procedure main()
if p := proc("user_func") then {
write("found it")
t := p(7)
write("result value: ", t)
} else {
write("didn't find it")
}
end
This program always produces "didn't find it". I note that if
the function is built in, proc finds it (i.e., repl, or match, etc.).
Perhaps the semantics of proc() have changed since ibpag2 was written.
Has proc() changed since 8.10 or is this a bug in 9.0?
David Harrison
(dsh@netcom.com)